<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="/common/base.jsp"%>
<%
	AreaDao dao = new AreaDao();
	String sql ="select * from t_area ";
	Object[]params={};
	List<Area> areaList = dao.queryOjects(sql, params);
	
	String idcard=request.getParameter("id");
	Member model=new Member(idcard);
	
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<link rel="stylesheet" type="text/css" href="css/admin.css">
<link rel="stylesheet" type="text/css" href="css/pintuer.css">
<link rel="stylesheet" type="text/css" href="third/laydate/dist/theme/default/laydate.css">

</head>

<body>
	<div class="panel admin-panel">
		<div class="panel-head" id="add">
			<strong><span class="icon-pencil-square-o"></span>修改参合人员档案信息</strong>
		</div>
		<div class="body-content">
			<form id="form-add" method="post" class="form-x"
				action="<%=path%>/system/MemberServlet?m=edit">
				<div class="form-group">
					<div class="label">
						<label>农合证号：</label>
					</div>
					<div class="field">
						<input type="text" class="input" data-validate="required:输入农合证号" 
							value="<%=model.getNhzcode() %>" name="nhzcode" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>医疗证号：</label>
					</div>
					<div class="field">
						<input type="text" class="input" data-validate="required:输入医疗证号" 
							value="<%=model.getYlzcode() %>" name="ylzcode" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>家庭编号：</label>
					</div>
					<div class="field">
						<input type="text" class="input" data-validate="required:输入家庭编号" 
							value="<%=model.getFamilycode() %>" name="familycode" readonly="readonly"/>
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>户内编号：</label>
					</div>
					<div class="field">
						<input type="text"class="input" data-validate="required:输入户内编号" 
							value="<%=model.getHousecode() %>" name="housecode" readonly="readonly"/>
						<div class="tips"></div>
					</div>
				</div>
				
				<div class="form-group">
					<div class="label">
						<label>身份证号：</label>
					</div>
					<div class="field">
						<input type="text" class="input" value="<%=model.getIdcard() %>" name="idcard"
							data-validate="required:输入身份证号" readonly="readonly"/>
						<div class="tips"></div>
					</div>
				</div>


				<div class="form-group">
					<div class="label">
						<label>姓名：</label>
					</div>
					<div class="field">
						<input type="text" class="input"
							value="<%=model.getName() %>" name="name"
							data-validate="required:请输入姓名" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>性别：</label>
					</div>
					<div class="field">
						<div class="button-group radio">

							<label class="button active"> <span
								class="icon icon-check"></span> <input name="sex" value="女"
								type="radio" checked="checked">女
							</label> <label class="button active"><span
								class="icon icon-times"></span> <input name="sex" value="男"
								type="radio" checked="checked">男 </label>
						</div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label>出生日期：</label>
					</div>
					<div class="field">
					<input type="text" class="input" value="<%=model.getBirthday() %>" name="birthday" id="birthday"/>
					</div>
				</div>
					   
				<div class="form-group">
					<div class="label">
						<label>民族：</label>
					</div>
					<div class="field">
						<input type="text" class="input" value="<%=model.getNation() %>" name="nation"
							data-validate="required:输入民族" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>健康状况：</label>
					</div>
					<div class="field">
						<select name="health" class="input">
							<option value="健康">健康</option>
							<option value="一般">一般</option>
							<option value="较差">较差</option>
						</select>
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>文化程度：</label>
					</div>
					<div class="field">
						<select name="culture" class="input">
							<option value="博士">博士</option>
							<option value="硕士">硕士</option>
							<option value="本科">本科</option>
							<option value="专科">专科</option>
							<option value="高中">高中</option>
							<option value="初中">初中</option>
							<option value="小学">小学</option>
							<option value="文盲与半文盲">文盲与半文盲</option>
						</select>
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label>与户主关系：</label>
					</div>
					<div class="field">
						<select name="relation" class="input">
							<option value="户主">户主</option>
							<option value="配偶">配偶</option>
							<option value="子">子</option>
							<option value="女">女</option>
						</select>
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label>是否农业户口：</label>
					</div>
					<div class="field">
						<div class="button-group radio">

							<label class="button active"> <span
								class="icon icon-check"></span> <input name="farmer" value="1"
								type="radio" checked="checked">是
							</label> <label class="button active"><span
								class="icon icon-times"></span> <input name="farmer" value="0"
								type="radio" checked="checked">否 </label>
						</div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label>工作单位：</label>
					</div>
					<div class="field">
						<input type="text" class="input" name="work" value="<%=model.getWork() %>"
							style="height:100px;"/>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>联系电话：</label>
					</div>
					<div class="field">
						<input type="text" class="input" value="<%=model.getPhone() %>" name="phone"
							data-validate="required:输入电话" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>年龄：</label>
					</div>
					<div class="field">
						<input type="text" class="input" value="<%=model.getAge() %>" name="age"
							data-validate="required:输入年龄" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>职业：</label>
					</div>
					<div class="field">
						<select id="occupation" name="occupation" class="input w50">
							<option value="农民">农民</option>
							<option value="工人">工人</option>
							<option value="学生">学生</option>
							<option value="其他">其他</option>
						</select>
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label></label>
					</div>
					<div class="field">
						<button id="add_btn" class="button bg-main icon-check-square-o"
							type="button">提交</button>
					</div>
				</div>
			</form>
		</div>
	</div>
</body>
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="third/laydate/laydate.js"></script>
<script type="text/javascript" src="js/admin.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		//重新绑定表单提交
		$("#add_btn").bind("click", function() {
			$('form').submit();
		});
	});

   laydate.render({
    elem: '#birthday' //指定元素
	});
</script>

</html>